package com.landiao.mapper;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.landiao.common.pojo.Page;
import com.landiao.entities.PayFlow;

public interface PayFlowMapper extends BaseMapper<PayFlow,String>{
    int deleteByPrimaryKey(String payFlowId);

    int insert(PayFlow record);

    int insertSelective(PayFlow record);

    PayFlow selectByPrimaryKey(String payFlowId);

    int updateByPrimaryKeySelective(PayFlow record);

    int updateByPrimaryKey(PayFlow record);
    
    /**
     * 根据流水号和支付方式查询流水信息
     * @param flowNo
     * @param payWay
     * @return
     */
    PayFlow selectByFlowNoAndPayWay(@Param("flowNo")String flowNo,@Param("payWay")String payWay);

	List<PayFlow> queryPayFlowPageFromBack(@Param("t")PayFlow t, Page<PayFlow> page);

	String getpayFlowAmount(@Param("t")PayFlow t);
}